from rest_framework import serializers
from .models import SearchHistory, HotSearchTag

class SearchHistorySerializer(serializers.ModelSerializer):
    class Meta:
        model = SearchHistory
        fields = ["keyword"]

class HotSearchTagSerializer(serializers.ModelSerializer):
    class Meta:
        model = HotSearchTag
        fields = ["tag", "is_hot"]